﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                    xmlns:col="clr-namespace:System.Collections;assembly=mscorlib" 
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:sysmedia="clr-namespace:System.Windows.Media;assembly=PresentationCore"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:mui="http://firstfloorsoftware.com/ModernUI">

    <!--
    ***********************************************************************
    Style pour la liste des contacts
    ***********************************************************************
    -->

    <ControlTemplate x:Key="CrmContactListTemplate" >
        <Button HorizontalContentAlignment="Left">
            <Button.Content>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30px"/>
                        <RowDefinition Height="30px"/>
                    </Grid.RowDefinitions>

                    <StackPanel Orientation="Horizontal"
                                Grid.Row="0" Grid.Column="0" Grid.RowSpan="2">
                        <TextBlock Text="{Binding Path=Nom, FallbackValue='[Nom]'}" Margin="5"/>
                        <TextBlock Text="{Binding Path=Prenom, FallbackValue='[Prénom]'}" Margin="5"/>
                    </StackPanel>
                    
                    <TextBlock Text="{Binding Path=Langue, FallbackValue='[Langue]'}"
                               Grid.Row="1" Grid.Column="0"/>
                    <TextBlock Text="{Binding Path=Sexe, FallbackValue='[Sexe]'}"
                               Grid.Row="1" Grid.Column="1"/>

                </Grid>
            </Button.Content>
        </Button>
    </ControlTemplate>

</ResourceDictionary>